package config

import (
	"github.com/zeromicro/go-zero/core/stores/redis"
	"github.com/zeromicro/go-zero/rest"
)

type Config struct {
	rest.RestConf
	MySQLConfig MySQLConfig `json:"mysqlConfig"`
	Auth        Auth
	RedisConfig redis.RedisConf
}

type MySQLConfig struct {
	DataSource     string `json:"dataSource"`
	ConnectTimeout int64  `json:"connectTimeout"`
}

type Auth struct {
	AccessSecret string
	AccessExpire int64
}
